package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.DeliveryAddressDao;
import com.ericom.model.DeliveryAddress;
import com.ericom.service.DeliveryAddressManager;
@Service("deliveryAddressManager")
public class DeliveryAddressManagerImpl extends GenericManagerImpl<DeliveryAddress, Long>
		implements DeliveryAddressManager {
    DeliveryAddressDao deliveryAddressDao;
    @Autowired
	public DeliveryAddressManagerImpl(DeliveryAddressDao deliveryAddressDao){
		super(deliveryAddressDao);
		this.deliveryAddressDao=deliveryAddressDao;
	}
	
	@Override
	public List<DeliveryAddress> findByMemberId(Long memberId) {
		
		return this.deliveryAddressDao.findByMemberId(memberId);
	}
	

}
